********************************************************************************************
**** GENERATE GRAPHICS
**** This file analyze the sample size
**** Version: 11/07/2014
********************************************************************************************


********************************************************************************************
**** EMPIRICAL CUMULATIVE DISTRIBUTION FUNCTION
********************************************************************************************

	cdfplot sh_food if round == 2010 & sh_food < 0.9, by(mother) nodraw name(d1,replace) scheme(burd) title("Baseline") legend( order(1 "Household Head" 2 "Mother")) xtitle("Expenditure share on Food") bgcolor(white)
	cdfplot sh_food if round == 2012 & sh_food < 0.9, by(mother) nodraw name(d2,replace) scheme(burd) title("Follow-up") legend( order(1 "Household Head" 2 "Mother")) xtitle("Expenditure share on Food") bgcolor(white)
	
	graph combine d1 d2, title("") subtitle("") scheme(burd) 
	graph export "Graphics/CDF Share of Food.pdf", replace

********************************************************************************************
**** MAPS AND PRICES
********************************************************************************************
	
	preserve

		collapse (mean) spindex if round == 2010, by(id_mun)
		merge 1:1 id_mun using "../../RESEARCH/Policy/Macedonia/Data on Municipalities/Municipalities.dta"
		spmap spindex using  "../../RESEARCH/Policy/Macedonia/Maps/Macedonia map/MKD_adm/MKD_coor2.dta",  id(id_map)  leglabel(leg_label) fcolor(GnBu) 
		*label(label(label) size(vsmall) xcoord(map_x) ycoord(map_y))
		graph export "Graphics/Stone Price Index (2010).pdf", replace
		
	restore

	preserve

		collapse (mean) spindex if round == 2012, by(id_mun)
		merge 1:1 id_mun using "../../RESEARCH/Policy/Macedonia/Data on Municipalities/Municipalities.dta"
		spmap spindex using  "../../RESEARCH/Policy/Macedonia/Maps/Macedonia map/MKD_adm/MKD_coor2.dta",  id(id_map)  leglabel(leg_label) fcolor(GnBu)
		graph export "Graphics/Stone Price Index (2012).pdf", replace
		
	restore
